<?php $__env->startSection('extra_css'); ?>
    <title><?php echo e($settings_general->site_title); ?></title>

    <meta name="keywords" content="<?php echo e($settings_seo->seo_keywords); ?>">
    <meta name="description" content="<?php echo e($settings_seo->seo_description); ?>">

    <!--Twitter Card-->
    <meta property="twitter:card" content="summary"/>
    <meta property="twitter:site" content="<?php echo e($settings_social->twitter_handle); ?>"/>
    <meta property="twitter:title" content="<?php echo e($settings_general->site_title); ?>"/>
    <meta property="twitter:description"
          content="<?php echo e(\Illuminate\Support\Str::limit(trim(strip_tags($settings_seo->seo_description)),300)); ?>"/>
    <meta property="twitter:image" content="<?php echo e($settings_general->logo_120); ?>"/>
    <meta name="twitter:creator" content="<?php echo e($settings_social->twitter_handle); ?>">
    <meta property="twitter:url" content="<?php echo e($settings_general->site_url); ?>"/>

    <!--Og tags-->
    <meta property="og:site_name" content="<?php echo e($settings_general->site_title); ?>"/>
    <meta property="og:title" content="<?php echo e($settings_general->site_title); ?>"/>
    <meta property="og:description"
          content="<?php echo e(\Illuminate\Support\Str::limit(trim(strip_tags($settings_seo->seo_description)),300)); ?>"/>
    <meta property="og:type" content="article"/>
    <meta property="og:url" content="<?php echo e($settings_general->site_url); ?>"/>
    <meta property="og:image" content="<?php echo e($settings_general->logo_120); ?>"/>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <div class="container main-wrapper">

        <div class="mag-content clearfix">
            <div class="row">
                <div class="col-md-12">
                    <div class="ad728-wrapper">
                        <?php foreach($ads[\App\Ads::TYPE_INDEX_HEADER] as $ad): ?>
                            <?php echo $ad->code; ?>

                        <?php endforeach; ?>
                    </div>
                </div>
            </div>
        </div>

        <div class="main-content mag-content clearfix">

            <div class="row">
                <div class="col-sm-12">
                    <ul class="tag-list clearfix">
                        <li class="trending">#Trending</li>
                        <?php foreach($popular_tags as $tag): ?>
                            <li><a href="/tag/<?php echo e($tag->slug); ?>"><?php echo e($tag->title); ?></a></li>
                        <?php endforeach; ?>
                    </ul>
                </div>
            </div>

            <?php if(sizeof($featured) > 0): ?>
                <div class="row featured-wrapper">
                    <div class="col-md-12">
                        <div class="flexslider">
                            <div class="featured-slider">

                                <?php for($i=0 ; $i<sizeof($featured);$i = $i+3): ?>
                                    <?php if(isset($featured[$i])): ?>
                                        <div class="slider-item">
                                            <div class="row">
                                                <div class="col-md-8 omega">
                                                    <div class="featured-big">
                                                        <a href="/<?php echo e($featured[$i]->slug); ?>" class="featured-href">

                                                            <?php if($featured[$i]->render_type == \App\Posts::RENDER_TYPE_IMAGE || $featured[$i]->render_type == \App\Posts::RENDER_TYPE_GALLERY): ?>
                                                                <img src="<?php echo e($featured[$i]->featured_image); ?>"
                                                                     alt="<?php echo e($featured[$i]->title); ?>">
                                                            <?php endif; ?>

                                                            <?php if($featured[$i]->render_type == \App\Posts::RENDER_TYPE_VIDEO): ?>
                                                                <figure class="image-overlay">
                                                                    <?php echo $featured[$i]->video_embed_code; ?>

                                                                </figure>
                                                            <?php endif; ?>

                                                            <div class="featured-header">
                                                                <span class="category bgcolor<?php echo e($i); ?>"><?php echo e($featured[$i]->sub_category->title); ?></span>

                                                                <h2><?php echo e($featured[$i]->title); ?></h2>


                                                                <p class="simple-share">
                                                                    by <?php echo e($featured[$i]->author->name); ?> -
                                                                    <span class="article-date"><?php echo e($featured[$i]->created_at->diffForHumans()); ?></span>
                                                                </p>
                                                            </div>


                                                        </a>

                                                    </div>
                                                </div>

                                                <div class="col-md-4 alpha">
                                                    <?php if(isset($featured[$i+1])): ?>
                                                        <div class="featured-small featured-top">
                                                            <a href="/<?php echo e($featured[$i+1]->slug); ?>" class="featured-href">

                                                                <?php if($featured[$i+1]->render_type == \App\Posts::RENDER_TYPE_IMAGE || $featured[$i+1]->render_type == \App\Posts::RENDER_TYPE_GALLERY): ?>
                                                                    <img src="<?php echo e($featured[$i+1]->featured_image); ?>"
                                                                         alt="<?php echo e($featured[$i+1]->title); ?>">
                                                                <?php endif; ?>

                                                                <?php if($featured[$i+1]->render_type == \App\Posts::RENDER_TYPE_VIDEO): ?>
                                                                    <figure class="image-overlay">
                                                                        <?php echo $featured[$i+1]->video_embed_code; ?>

                                                                    </figure>
                                                                <?php endif; ?>

                                                                <div class="featured-header">
                                                                    <span class="category bgcolor<?php echo e($i+1); ?>"><?php echo e($featured[$i+1]->sub_category->title); ?></span>

                                                                    <h2><?php echo e($featured[$i+1]->title); ?></h2>

                                                                    <p class="simple-share">
                                                                        by <?php echo e($featured[$i+1]->author->name); ?> -
                                                                        <span class="article-date"><?php echo e($featured[$i+1]->created_at->diffForHumans()); ?></span>
                                                                    </p>
                                                                </div>
                                                            </a>
                                                        </div>
                                                    <?php endif; ?>

                                                    <?php if(isset($featured[$i+2])): ?>
                                                        <div class="featured-small">
                                                            <a href="/<?php echo e($featured[$i+2]->slug); ?>" class="featured-href">

                                                                <?php if($featured[$i+2]->render_type == \App\Posts::RENDER_TYPE_IMAGE || $featured[$i+2]->render_type == \App\Posts::RENDER_TYPE_GALLERY): ?>
                                                                    <img src="<?php echo e($featured[$i+2]->featured_image); ?>"
                                                                         alt="<?php echo e($featured[$i+2]->title); ?>">
                                                                <?php endif; ?>

                                                                <?php if($featured[$i+2]->render_type == \App\Posts::RENDER_TYPE_VIDEO): ?>
                                                                    <figure class="image-overlay">
                                                                        <?php echo $featured[$i+2]->video_embed_code; ?>

                                                                    </figure>
                                                                <?php endif; ?>

                                                                <div class="featured-header">
                                                                    <span class="category bgcolor<?php echo e($i+2); ?>"><?php echo e($featured[$i+2]->sub_category->title); ?></span>

                                                                    <h2><?php echo e($featured[$i+2]->title); ?></h2>

                                                                    <p class="simple-share">
                                                                        by <?php echo e($featured[$i+2]->author->name); ?> -
                                                                        <span class="article-date"><?php echo e($featured[$i+2]->created_at->diffForHumans()); ?></span>
                                                                    </p>
                                                                </div>
                                                            </a>
                                                        </div>
                                                    <?php endif; ?>
                                                </div>
                                            </div>
                                        </div>
                                    <?php endif; ?>
                                <?php endfor; ?>

                            </div>
                        </div>
                    </div>
                </div>
            <?php endif; ?>

            <div class="row main-body">
                <div class="col-md-8">
                    <section class="admag-block">
                        <div class="row">
                            <div class="col-md-3">
                                <div class="news-feed">
                                    <h3 class="block-title"><span>Just Posted</span></h3>
                                    <ul class="widget-content">
                                        <?php foreach($just_posted as $post): ?>
                                            <li>
                                                <article>
                                                    <h3>
                                                        <a href="/<?php echo e($post->slug); ?>"><?php echo e($post->title); ?></a>
                                                    </h3>

                                                    <p>
                                                        <span><i class="fa fa-clock-o"></i> <?php echo e($post->created_at->diffForHumans()); ?></span>
                                                    </p>
                                                </article>
                                            </li>
                                        <?php endforeach; ?>
                                    </ul>
                                </div>
                            </div>

                            <div class="col-md-9">

                                <?php foreach($latest_top as $index => $post): ?>
                                    <?php if($index == 0): ?>
                                        <article class="news-block">

                                            <?php if($post->render_type == \App\Posts::RENDER_TYPE_IMAGE || $post->render_type == \App\Posts::RENDER_TYPE_GALLERY): ?>
                                                <a href="/<?php echo e($post->slug); ?>" class="overlay-link">
                                                    <figure class="image-overlay">
                                                        <img src="<?php echo e($post->featured_image); ?>" alt="">
                                                    </figure>
                                                </a>
                                            <?php endif; ?>

                                            <?php if($post->render_type == \App\Posts::RENDER_TYPE_VIDEO): ?>
                                                <figure class="image-overlay">
                                                    <?php echo $post->video_embed_code; ?>

                                                </figure>
                                            <?php endif; ?>

                                            <a href="/category/<?php echo e($post->category->slug); ?>/<?php echo e($post->sub_category->slug); ?>"
                                               class="category">
                                                <?php echo e($post->sub_category->title); ?>

                                            </a>

                                            <div class="news-details">
                                                <h3 class="news-title">
                                                    <a href="/<?php echo e($post->slug); ?>">
                                                        <?php echo e($post->title); ?>

                                                    </a>
                                                </h3>

                                                <p><?php echo str_limit(strip_tags($post->description),300,'...'); ?></p>

                                                <p class="simple-share">
                                                    by
                                                    <a href="/author/<?php echo e($post->author->slug); ?>"><b><?php echo e($post->author->name); ?></b></a>
                                                    -
                                            <span class="article-date"><i
                                                        class="fa fa-clock-o"></i> <?php echo e($post->created_at->diffForHumans()); ?></span>
                                                </p>
                                            </div>
                                        </article>
                                    <?php else: ?>
                                        <article class="simple-post clearfix">

                                            <div class="simple-thumb">
                                                <?php if($post->render_type == \App\Posts::RENDER_TYPE_IMAGE || $post->render_type == \App\Posts::RENDER_TYPE_GALLERY): ?>
                                                    <a href="/<?php echo e($post->slug); ?>" class="overlay-link">
                                                        <img src="<?php echo e($post->featured_image); ?>" alt="">

                                                    </a>
                                                <?php endif; ?>

                                                <?php if($post->render_type == \App\Posts::RENDER_TYPE_VIDEO): ?>
                                                    <figure class="image-overlay" style="min-height: 0px;">
                                                        <?php echo $post->video_embed_code; ?>

                                                    </figure>
                                                <?php endif; ?>
                                            </div>

                                            <header>
                                                <h3>
                                                    <a href="/<?php echo e($post->slug); ?>"><?php echo e($post->title); ?></a>
                                                </h3>

                                                <p><?php echo str_limit(strip_tags($post->description),200,'...'); ?></p>

                                                <p class="simple-share pull-right">
                                                    <a href="/category/<?php echo e($post->category->slug); ?>/<?php echo e($post->sub_category->slug); ?>"><?php echo e($post->sub_category->title); ?></a>
                                                    /
                                                    by
                                                    <a href="/author/<?php echo e($post->author->slug); ?>"><?php echo e($post->author->name); ?></a>
                                                    -
                                                    <span><i class="fa fa-clock-o"></i> <?php echo e($post->created_at->diffForHumans()); ?></span>
                                                </p>
                                            </header>
                                        </article>
                                    <?php endif; ?>
                                <?php endforeach; ?>

                            </div>
                            <!-- End mid column -->
                        </div>
                    </section>

                    <!-- BEGIN BLOCK 2 -->
                    <section class="news-text-block">

                        <?php foreach($category_posts as $index => $category_post): ?>

                            <?php if(sizeof($category_post->posts) > 3): ?>
                                <div class="row">
                                    <div class="col-md-12">

                                        <h3 class="block-title"><span><a
                                                        href="/category/<?php echo e($category_post->slug); ?>"><?php echo e($category_post->title); ?></a></span>
                                        </h3>

                                        <article class="news-block big-block">


                                            <?php if($category_post->posts[0]->render_type == \App\Posts::RENDER_TYPE_IMAGE || $category_post->posts[0]->render_type == \App\Posts::RENDER_TYPE_GALLERY): ?>
                                                <a href="/<?php echo e($category_post->posts[0]->slug); ?>" class="overlay-link">
                                                    <figure class="image-overlay">
                                                        <img src="<?php echo e($category_post->posts[0]->featured_image); ?>" alt="">
                                                    </figure>
                                                </a>
                                            <?php endif; ?>

                                            <?php if($category_post->posts[0]->render_type == \App\Posts::RENDER_TYPE_VIDEO): ?>
                                                <figure class="image-overlay">
                                                    <?php echo $category_post->posts[0]->video_embed_code; ?>

                                                </figure>
                                            <?php endif; ?>


                                            <a href="/category/<?php echo e($category_post->slug); ?>/<?php echo e($category_post->posts[0]->sub_category->slug); ?>"
                                               class="category">
                                                <?php echo e($category_post->posts[0]->sub_category->title); ?>

                                            </a>


                                            <header class="news-details">
                                                <h3 class="news-title">
                                                    <a href="/<?php echo e($category_post->posts[0]->slug); ?>">
                                                        <?php echo e($category_post->posts[0]->title); ?>

                                                    </a>
                                                </h3>

                                                <p><?php echo e(str_limit(strip_tags($category_post->posts[0]->description),300)); ?></p>

                                                <p class="simple-share">
                                                    by
                                                    <a href="/author/<?php echo e($category_post->posts[0]->author->slug); ?>"><b><?php echo e($category_post->posts[0]->author->name); ?></b></a>
                                                    -
                                            <span class="article-date"><i
                                                        class="fa fa-clock-o"></i> <?php echo e($category_post->posts[0]->created_at->diffForHumans()); ?></span>
                                                </p>

                                            </header>
                                        </article>
                                    </div>
                                </div>

                                <?php for($i=1;$i<sizeof($category_post->posts);$i = $i+2): ?>
                                    <?php if(isset($category_post->posts[$i])): ?>
                                        <div class="row">
                                            <div class="col-md-6">
                                                <article class="news-block small-block">


                                                    <?php if($category_post->posts[$i]->render_type == \App\Posts::RENDER_TYPE_IMAGE || $category_post->posts[$i]->render_type == \App\Posts::RENDER_TYPE_GALLERY): ?>
                                                        <a href="/<?php echo e($category_post->posts[$i]->slug); ?>"
                                                           class="overlay-link">
                                                            <figure class="image-overlay">
                                                                <img src="<?php echo e($category_post->posts[$i]->featured_image); ?>"
                                                                     alt="">
                                                            </figure>
                                                        </a>
                                                    <?php endif; ?>

                                                    <?php if($category_post->posts[$i]->render_type == \App\Posts::RENDER_TYPE_VIDEO): ?>
                                                        <figure class="image-overlay">
                                                            <?php echo $category_post->posts[$i]->video_embed_code; ?>

                                                        </figure>
                                                    <?php endif; ?>


                                                    <a href="/category/<?php echo e($category_post->slug); ?>/<?php echo e($category_post->posts[$i]->sub_category->slug); ?>"
                                                       class="category">
                                                        <?php echo e($category_post->posts[$i]->sub_category->title); ?>

                                                    </a>
                                                    <header class="news-details">
                                                        <h3 class="news-title">
                                                            <a href="/<?php echo e($category_post->posts[$i]->slug); ?>">
                                                                <?php echo e($category_post->posts[$i]->title); ?>

                                                            </a>
                                                        </h3>

                                                        <p class="simple-share">
                                                            by
                                                            <a href="/author/<?php echo e($category_post->posts[$i]->author->slug); ?>"><b><?php echo e($category_post->posts[$i]->author->name); ?></b></a>
                                                            -
                                            <span class="article-date"><i
                                                        class="fa fa-clock-o"></i> <?php echo e($category_post->posts[$i]->created_at->diffForHumans()); ?></span>
                                                        </p>
                                                    </header>
                                                </article>
                                                <!-- News block -->
                                            </div>

                                            <?php if(isset($category_post->posts[$i+1])): ?>
                                                <div class="col-md-6">
                                                    <article class="news-block small-block">

                                                        <?php if($category_post->posts[$i+1]->render_type == \App\Posts::RENDER_TYPE_IMAGE || $category_post->posts[$i+1]->render_type == \App\Posts::RENDER_TYPE_GALLERY): ?>
                                                            <a href="/<?php echo e($category_post->posts[$i+1]->slug); ?>"
                                                               class="overlay-link">
                                                                <figure class="image-overlay">
                                                                    <img src="<?php echo e($category_post->posts[$i+1]->featured_image); ?>"
                                                                         alt="">
                                                                </figure>
                                                            </a>
                                                        <?php endif; ?>

                                                        <?php if($category_post->posts[$i+1]->render_type == \App\Posts::RENDER_TYPE_VIDEO): ?>
                                                            <figure class="image-overlay">
                                                                <?php echo $category_post->posts[$i+1]->video_embed_code; ?>

                                                            </figure>
                                                        <?php endif; ?>


                                                        <a href="/category/<?php echo e($category_post->slug); ?>/<?php echo e($category_post->posts[$i+1]->sub_category->slug); ?>"
                                                           class="category">
                                                            <?php echo e($category_post->posts[$i]->sub_category->title); ?>

                                                        </a>
                                                        <header class="news-details">
                                                            <h3 class="news-title">
                                                                <a href="/<?php echo e($category_post->posts[$i+1]->slug); ?>">
                                                                    <?php echo e($category_post->posts[$i+1]->title); ?>

                                                                </a>
                                                            </h3>

                                                            <p class="simple-share">
                                                                by
                                                                <a href="/author/<?php echo e($category_post->posts[$i+1]->author->slug); ?>"><b><?php echo e($category_post->posts[$i+1]->author->name); ?></b></a>
                                                                -
                                            <span class="article-date"><i
                                                        class="fa fa-clock-o"></i> <?php echo e($category_post->posts[$i+1]->created_at->diffForHumans()); ?></span>
                                                            </p>
                                                        </header>
                                                    </article>
                                                    <!-- News block -->
                                                </div>
                                            <?php endif; ?>
                                        </div>
                                    <?php endif; ?>
                                <?php endfor; ?>
                            <?php endif; ?>
                        <?php endforeach; ?>

                    </section>

                    <!-- END BLOCK 2 -->

                </div>
                <!-- End Left big column -->

                <div class="col-md-4">
                    <aside class="sidebar clearfix">

                        <?php if(isset($ads[\App\Ads::TYPE_SIDEBAR][0])): ?>
                            <div class="widget adwidget">
                                <?php echo $ads[\App\Ads::TYPE_SIDEBAR][0]->code; ?>

                            </div>
                        <?php endif; ?>

                        <?php if(isset($ads[\App\Ads::TYPE_SIDEBAR][1])): ?>
                            <div class="widget adwidget">
                                <?php echo $ads[\App\Ads::TYPE_SIDEBAR][1]->code; ?>

                            </div>
                        <?php endif; ?>

                        <div class="widget searchwidget">
                            <form action="/search" method="GET" class="searchwidget-form">
                                <div class="input-group">
                                    <input type="text" class="form-control" name="search" placeholder="Search...">
          <span class="input-group-btn">
            <button class="btn btn-default" type="button"><i class="fa fa-search"></i></button>
          </span>
                                </div>
                            </form>
                        </div>

                        <?php if(!empty($settings_social->facebook_box_js)): ?>
                            <div class="widget tabwidget">
                                <?php echo $settings_social->facebook_box_js; ?>

                            </div>
                        <?php endif; ?>

                        <?php if(!empty($settings_social->twitter_box_js)): ?>
                            <div class="widget tabwidget">
                                <?php echo $settings_social->twitter_box_js; ?>

                            </div>
                        <?php endif; ?>

                        <div class="widget tagwidget">
                            <h3 class="block-title"><span>Tags</span></h3>
                            <ul class="tags-widget">
                                <?php foreach($popular_tags as $tag): ?>
                                    <li><a href="/tag/<?php echo e($tag->slug); ?>"><?php echo e($tag->title); ?></a></li>
                                <?php endforeach; ?>
                            </ul>
                        </div>

                        <div class="widget reviewwidget">
                            <h3 class="block-title"><span>Reviews</span></h3>

                            <?php foreach($review_posts as $review): ?>
                                <article class="widget-post clearfix">
                                    <div class="simple-thumb">

                                        <?php if($review->render_type == \App\Posts::RENDER_TYPE_IMAGE || $review->render_type == \App\Posts::RENDER_TYPE_GALLERY): ?>
                                            <a href="/<?php echo e($review->slug); ?>">
                                                <img src="<?php echo e($review->featured_image); ?>" alt="">
                                            </a>
                                        <?php endif; ?>

                                        <?php if($review->render_type == \App\Posts::RENDER_TYPE_VIDEO): ?>
                                            <figure class="image-overlay" style="min-height: 0px;">
                                                <?php echo $review->video_embed_code; ?>

                                            </figure>
                                        <?php endif; ?>

                                    </div>
                                    <header>
                                        <h3>
                                            <a href="/<?php echo e($review->slug); ?>"><?php echo e($review->title); ?></a>
                                        </h3>

                                        <p class="simple-share pull-right">
           <span class="read_only_raty"
                 data-score="<?php echo e($review->average_rating); ?>"></span>
                                        </p>
                                    </header>
                                </article>
                            <?php endforeach; ?>
                        </div>

                        <?php if(sizeof($global_pages) > 0): ?>
                            <div class="widget categorywidget">
                                <h3 class="block-title"><span>Pages</span></h3>
                                <ul>
                                    <?php foreach($global_pages as $page): ?>
                                        <?php if($page->show_in_sidebar == 1): ?>
                                            <li>
                                                <a href="/page/<?php echo e($page->slug); ?>"><?php echo e($page->title); ?></a>
                                            </li>
                                        <?php endif; ?>
                                    <?php endforeach; ?>
                                </ul>
                            </div>
                        <?php endif; ?>

                        <div class="widget categorywidget">
                            <h3 class="block-title"><span>Categories</span></h3>
                            <ul>
                                <?php foreach($global_cats as $cat): ?>
                                    <?php if($cat->show_in_sidebar == 1): ?>
                                        <li>
                                            <a href="/category/<?php echo e($cat->slug); ?>"><?php echo e($cat->title); ?> <span
                                                        class="count"><?php echo e($cat->post_count); ?></span></a>
                                        </li>
                                    <?php endif; ?>
                                <?php endforeach; ?>
                            </ul>
                        </div>

                        <?php if(!empty($settings_general->mailchimp_form)): ?>
                            <div class="widget adwidget subscribewidget">
                                <h3 class="block-title"><span>Subscribe</span></h3>

                                <p>We dont spam our loyal customers , you can unsubscribe anytime </p>

                                <?php echo $settings_general->mailchimp_form; ?>


                            </div>
                        <?php endif; ?>

                    </aside>
                </div>
                <!-- End last column -->
            </div>
            <!-- .main-body -->

            <?php if(sizeof($video_posts) > 0): ?>
                <section class="admag-block">
                    <div class="row">
                        <div class="col-md-12">
                            <h3 class="block-title"><span>Videos</span></h3>
                        </div>
                    </div>

                    <div class="row">
                        <?php foreach($video_posts as $index => $video_post): ?>
                            <div class="col-md-4">
                                <article class="featured-small box-news">
                                    <a href="/<?php echo e($video_post->slug); ?>">
                                        <?php echo $video_post->video_embed_code; ?>

                                    </a>
                                    <header class="featured-header">
                                        <a class="category bgcolor2"
                                           href="/category/<?php echo e($video_post->category->slug); ?>/<?php echo e($video_post->sub_category->slug); ?>"><?php echo e($video_post->sub_category->title); ?></a>

                                        <h2><a href="/<?php echo e($video_post->slug); ?>"><?php echo e($video_post->title); ?></a></h2>

                                        <p class="simple-share">
                                            by
                                            <a href="/author/<?php echo e($video_post->author->slug); ?>"><b><?php echo e($video_post->author->name); ?></b></a>
                                            -
                                            <span class="article-date"><?php echo e($video_post->created_at->diffForHumans()); ?></span>

                                        </p>
                                    </header>
                                </article>
                            </div>
                        <?php endforeach; ?>
                    </div>

                </section>
            <?php endif; ?>

            <?php if(sizeof($review_posts) > 0): ?>
                <div class="row">

                    <div class="col-md-8">

                        <section class="admag-block">
                            <h3 class="block-title"><span>Top Reviews</span></h3>

                            <div class="row">
                                <?php foreach($review_posts as $review): ?>
                                    <div class="col-md-6">
                                        <article class="featured-small box-news">

                                            <?php if($review->render_type == \App\Posts::RENDER_TYPE_IMAGE || $review->render_type == \App\Posts::RENDER_TYPE_GALLERY): ?>
                                                <a href="/<?php echo e($review->slug); ?>">
                                                    <img src="<?php echo e($review->featured_image); ?>" alt="">
                                                </a>
                                            <?php endif; ?>

                                            <?php if($review->render_type == \App\Posts::RENDER_TYPE_VIDEO): ?>
                                                <figure class="">
                                                    <?php echo $review->video_embed_code; ?>

                                                </figure>
                                            <?php endif; ?>


                                            <header class="featured-header">
                                                <a class="category bgcolor2"
                                                   href="/category/<?php echo e($review->category->slug); ?>/<?php echo e($review->sub_category->slug); ?>"><?php echo e($review->sub_category->title); ?></a>

                                                <h2><a href="/<?php echo e($review->slug); ?>"><?php echo e($review->title); ?></a></h2>

                                                <p class="simple-share pull-right">
                                                    by
                                                    <a href="/author/<?php echo e($review->author->slug); ?>"><b><?php echo e($review->author->name); ?></b></a>
                                                    -
                                                    <span class="article-date"><?php echo e($review->created_at->diffForHumans()); ?></span>
                   <span class="read_only_raty"
                         data-score="<?php echo e($review->average_rating); ?>"></span>
                                                </p>
                                            </header>
                                        </article>
                                    </div>
                                <?php endforeach; ?>
                            </div>

                        </section>
                    </div>

                    <div class="col-md-4">
                        <aside class="sidebar">
                            <div class="widget social-links">
                                <h3 class="block-title"><span>Follow us</span></h3>
                                <ul class="social-list">

                                    <?php if(strlen($settings_social->fb_page_url) > 0): ?>
                                        <li class="social-facebook">
                                            <a href="<?php echo e($settings_social->fb_page_url); ?>" data-toggle="tooltip"
                                               data-placement="bottom" title=""
                                               data-original-title="Facebook">
                                                <i class="fa fa-facebook"></i>
                                            </a>
                                        </li>
                                    <?php endif; ?>

                                    <?php if(strlen($settings_social->twitter_url) > 0): ?>
                                        <li class="social-twitter" data-toggle="tooltip" data-placement="bottom"
                                            title=""
                                            data-original-title="Twitter">
                                            <a href="<?php echo e($settings_social->twitter_url); ?>">
                                                <i class="fa fa-twitter"></i>
                                            </a>
                                        </li>
                                    <?php endif; ?>

                                    <?php if(strlen($settings_social->google_plus_page_url) > 0): ?>
                                        <li class="social-gplus">
                                            <a href="<?php echo e($settings_social->google_plus_page_url); ?>" data-toggle="tooltip"
                                               data-placement="bottom" title=""
                                               data-original-title="Google+">
                                                <i class="fa fa-google-plus"></i>
                                            </a>
                                        </li>
                                    <?php endif; ?>

                                    <?php if(strlen($settings_social->skype_username) > 0): ?>
                                        <li class="social-skype">
                                            <a href="skype:<?php echo e($settings_social->skype_username); ?>" data-toggle="tooltip"
                                               data-placement="bottom" title=""
                                               data-original-title="Skype">
                                                <i class="fa fa-skype"></i>
                                            </a>
                                        </li>
                                    <?php endif; ?>

                                    <?php if(strlen($settings_social->youtube_channel_url) > 0): ?>
                                        <li class="social-youtube">
                                            <a href="<?php echo e($settings_social->youtube_channel_url); ?>" data-toggle="tooltip"
                                               data-placement="bottom" title=""
                                               data-original-title="Youtube">
                                                <i class="fa fa-youtube"></i>
                                            </a>
                                        </li>
                                    <?php endif; ?>

                                    <?php if($settings_general->generate_rss_feeds == 1): ?>
                                        <li class="social-rss">
                                            <a href="/rss.xml" data-toggle="tooltip" data-placement="bottom" title=""
                                               data-original-title="RSS">
                                                <i class="fa fa-rss"></i>
                                            </a>
                                        </li>
                                    <?php endif; ?>
                                </ul>
                            </div>
                            <!-- .widget .social-links -->

                            <?php for($i=2;$i<sizeof($ads[\App\Ads::TYPE_SIDEBAR]);$i++): ?>
                                <?php if(isset($ads[\App\Ads::TYPE_SIDEBAR][$i])): ?>
                                    <div class="widget adwidget">
                                        <?php echo $ads[\App\Ads::TYPE_SIDEBAR][$i]->code; ?>

                                    </div>
                                <?php endif; ?>
                            <?php endfor; ?>


                        </aside>
                        <!-- End sidebar -->
                    </div>
                </div>
            <?php endif; ?>
        </div>

        <div class="col-md-12">
            <div class="ad728-wrapper">
                <?php foreach($ads[\App\Ads::TYPE_INDEX_FOOTER] as $ad): ?>
                    <?php echo $ad->code; ?>

                <?php endforeach; ?>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>